﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using Sahit.iSoilHotel.Application.MainBoundedContext.DTO.AuthenticationAgg;

namespace Sahit.iSoilHotel.DistributedServices.MainBoundedContext.Interfaces
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "ITavernService" in both code and config file together.
    [ServiceContract]
    public interface ITavernAuthenticationService
    {
        [OperationContract()]
        bool ValidateAccount(string userName, string password);

        [OperationContract()]
        AccountDTO GetAccountByUserName(string userName);

        [OperationContract()]
        RegistrationResultDTO RegisterAccount(RegistrationRequestDTO registrationRequest);
    }
}
